package org.raymond.icloud.apis.admin.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import org.raymond.icloud.common.core.mybatis.entity.AbstractEntity;

import javax.validation.constraints.NotEmpty;

@Data
@Builder
@TableName("t_user_role_rel")
public class TUserRoleRel extends AbstractEntity {
    @ApiModelProperty(name="roleId", value = "角色Id", dataType="Long")
    @NotEmpty(message = "roleId不能为空")
    @TableField("role_id")
    private Long roleId;


    @ApiModelProperty(name="userId", value = "用户Id", dataType="Long")
    @NotEmpty(message = "userId不能为空")
    @TableField("user_id")
    private Long userId;
}
